/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Rewriting;

import RPS.PeerSchema;
import SPARQL.SimpleURI;
import java.util.Objects;

/**
 *
 * @author mirko
 */
public class Source {
    
    private PeerSchema schema;
    private SimpleURI endpoint;

    public PeerSchema getSchema() {
        return schema;
    }

    public void setSchema(PeerSchema schema) {
        this.schema = schema;
    }

    public SimpleURI getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(SimpleURI endpoint) {
        this.endpoint = endpoint;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 13 * hash + Objects.hashCode(this.schema);
        hash = 13 * hash + Objects.hashCode(this.endpoint);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Source other = (Source) obj;
        if (!Objects.equals(this.schema, other.schema)) {
            return false;
        }
        if (!Objects.equals(this.endpoint, other.endpoint)) {
            return false;
        }
        return true;
    }
    
}
